package com.photonpay.api.request;

import cn.hutool.http.Method;
import com.photonpay.api.response.AccessTokenResponse;
import lombok.Builder;
import lombok.Data;

/**
 * 生成token
 * @author ：lo-
 * @date ：Created in 2023/11/22 14:40
 */
@Data
@Builder
public class AccessTokenRequest extends BaseRequest<AccessTokenResponse> {

    @Override
    public Class<AccessTokenResponse> getResponseClass() {
        return AccessTokenResponse.class;
    }

    @Override
    public String getBasePath() {
        return "/oauth2/token/accessToken";
    }

    @Override
    public Method getMethod() {
        return Method.POST;
    }

    @Override
    public boolean isAccessToken() {
        return false;
    }

    @Override
    public boolean isGetTokenPath() {
        return true;
    }

    @Override
    public boolean isSign() {
        return false;
    }
}
